import jieba
from wordcloud import WordCloud

"""Hello, ladies and gentlemen! 
In the era of the Internet and big data, information is spreading rapidly, and the protection of personal privacy and information security are more important. Set boundaries for your privacy, don't let it be set by others
Have you ever received such a text message or a cold call like this? Have you ever had QQ number stolen and lots of malicious QR codes appear in QQ group? Do you consider your personal privacy isn’t really safe?
If you answered yes, you should protect personal privacy by appropriate and necessary means. Today, I will show you the current situation of it, how to protect it and the changes that will happen.
The current situation of personal privacy protection is not optimistic and very serious. Many apps illegally collect personal privacy information. According to the M IIT’s sixth APP circular in 2020, 82 percent of apps illegally collect personal information, including the apps in the slide. Do you think they are familiar? Maybe you like live streaming, small games, fitness, online learning, and some apps have even been downloaded tens of millions of times. Please do not take it lightly. Take myself for instance, I get harassing text messages and sales calls almost every two or three days. According to People’s Daily people's Commentary: Let privacy protection keep pace with the era of big data. Yes, we need to do it. According to the CAICT's white paper, the overall problems of App personal information security are concentrated.67% of apps have 5 or more problems, and 18.5% of apps have 10 or more problems. 
So, how to protect personal privacy in daily life? First, for QQ number theft, the password setting should be changed from time to time. Make sure it’s at least 8 bits including numbers, uppercase and lowercase letters, special symbols or at least 15 characters. Second, for harassing text messages, promotion and sales calls, pull into the phone address book blacklist. Third, don’t disclose personal real information except the inevitable "real-name authentication", For example, you should fill in real phone number and email address for authentication. Don’t fill in real name.
Use the above methods reasonably, the changes will happen. Every time you turn on phone, you don't get harassing text messages or cold calls anymore. Every time you open QQ, there are no malicious QR codes. Every time you sign up for an account, no one will illegally use your real identity again.
Your personal life will be better if you take the right and necessary measures to protect your privacy and information security. So, take action right now!"""
# 中文词云需要jieba分词以后才能由词云处理
txt='程序设计语言是计算机能够理解和识别用户操作意图的一种交互体系，它按照特定规则组织计算机指令，使计算机自动进行各种运算处理。'
words=jieba.lcut(txt) # 精确分词，适合文本处理
new_txt=' '.join(words) # 空格拼接
wordcloud=WordCloud(font_path=r'C:\Windows\Fonts\simsun.ttc').generate(new_txt)
wordcloud.to_file(r'C:\Users\SiliconValley520\Desktop\词云中文分词.PNG')

